package com.sisbibvir.unmsm.entidades;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the post database table.
 * 
 */
@Entity
public class Post implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String detalle;

	@Column(name="nro_post")
	private int nroPost;

	//bi-directional many-to-one association to Usuario
	@ManyToOne
	private Usuario usuario;

	//bi-directional many-to-one association to Tema
	@ManyToOne
	private Tema tema;

	public Post() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDetalle() {
		return this.detalle;
	}

	public void setDetalle(String detalle) {
		this.detalle = detalle;
	}

	public int getNroPost() {
		return this.nroPost;
	}

	public void setNroPost(int nroPost) {
		this.nroPost = nroPost;
	}

	public Usuario getUsuario() {
		return this.usuario;
	}

	public void setUsuario(Usuario usuario) {
		this.usuario = usuario;
	}

	public Tema getTema() {
		return this.tema;
	}

	public void setTema(Tema tema) {
		this.tema = tema;
	}

}